import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Dialogs 1.3
import QtQml.Models 2.1


Component {
    Rectangle {
        id: out_rect

        ObjectModel {
            id: view_model

            Loader {
                width: view.width
                height: view.height
                source: "tcpbody/FileButton.qml"
                onLoaded: {
                    console.log(height)
                }
            }

        }
        ListView {
            id: view
            anchors.fill: parent
            boundsBehavior: Flickable.StopAtBounds

            model: view_model
            Component.onCompleted: {
                console.log("view " + view.height)
            }
        }

    }
}


